package com.hand.qt24953.ssmtrain.util;

import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.util.MultiValueMap;

/**
 * @author qiutao
 * @date 2019/7/19
 */
public class Payload extends ResponseEntity {
    public Payload(HttpStatus status) {
        super(status);
    }

    public Payload(Object body) {
        super(body, HttpStatus.OK);
    }

    public Payload(Object body, HttpStatus status) {
        super(body, status);
    }

    public Payload(MultiValueMap headers, HttpStatus status) {
        super(headers, status);
    }

    public Payload(Object body, MultiValueMap headers, HttpStatus status) {
        super(body, headers, status);
    }
}
